package cn.dengta.webapp.im.enums;

import lombok.Getter;

/**
 * 群状态
 */
@Getter
public enum GroupStatus {

	VERIFY_FALSE(-1, "审核失败"),
	VERIFY_WAIT(0, "待审核"),
	VERIFY_TRUE(1, "审核通过");

	public final Integer value;
	String label;

	GroupStatus(Integer value, String label) {
		this.value = value;
		this.label = label;
	}

	public static String getLabel(final int val) {
		for (GroupStatus p : GroupStatus.values()) {
			if (p.value == val) {
				return p.getLabel();
			}
		}
		return null;
	}

}
